package com.eric.controller;


import com.eric.domain.po.Book;
import com.eric.service.BookService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("book")
public class BookController {

    @Resource
    private BookService bookService;


    @GetMapping("/all")
    public List<Book>getAllBookList(){

        return bookService.getAllBookListService();
    }


}
